package com.ebocy.hammer.core.domain;

import com.ebocy.hammer.core.db.annotations.EnsureIndex;
import com.ebocy.hammer.core.db.annotations.Entity;
import com.ebocy.hammer.core.db.model.BaseEntity;

/**
 * 用户物品表
 *
 * @author mafei
 */
@Entity
@EnsureIndex("{gamePlayerItemId:1}")
public class GamePlayerItem extends BaseEntity {
	private static final long serialVersionUID = 1L;

	public static String GAMEPLAYERITEMID = "gamePlayerItemId";
	public static String GAMEPLAYERID = "gamePlayerId";
	public static String ITEMID = "itemId";
	public static String KEY = "key";
	public static String KIND = "kind";
	public static String EFFECTIVETIME = "effectiveTime";
	public static String CREATETIME = "createTime";

	// 自增id,唯一
	private long gamePlayerItemId;
	// 用户游戏id
	private long gamePlayerId;
	// 物品id
	private int itemId;
	// 装备位置
	private int key;
	//物品种类
	private int kind;
	//有效期限
	private short effectiveTime;
	// 时间
	private long createTime;

	public long getGamePlayerItemId() {
		return gamePlayerItemId;
	}

	public void setGamePlayerItemId(long gamePlayerItemId) {
		this.gamePlayerItemId = gamePlayerItemId;
	}

	public long getGamePlayerId() {
		return gamePlayerId;
	}

	public void setGamePlayerId(long gamePlayerId) {
		this.gamePlayerId = gamePlayerId;
	}

	public int getItemId() {
		return itemId;
	}

	public void setItemId(int itemId) {
		this.itemId = itemId;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public int getKind() {
		return kind;
	}

	public void setKind(int kind) {
		this.kind = kind;
	}

	public short getEffectiveTime() {
		return effectiveTime;
	}

	public void setEffectiveTime(short effectiveTime) {
		this.effectiveTime = effectiveTime;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
}
